home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wics.zip / PCTBAR.CPP < prev    next >
C/C++ Source or Header  |  1993-03-03  |  835b  |  33 lines

  1. //==============================================================================================
  2. //
  3. //    Windows Interface Construction Set
  4. //    Version 1.00
  5. //
  6. //    PCTBAR.CPP - Percent Bar Class Source File
  7. //    Copyright ⌐ 1993 by Microdyne Development Technologies.
  8. //    All rights reserved.
  9. //==============================================================================================
  10.  
  11. #include <owl.h>
  12. #include <pctbar.h>
  13.  
  14. TPercentBar::TPercentBar (PTWindowsObject AParent, int ResourceId, PTModule AModule)
  15.     : TControl (AParent, ResourceId, AModule)
  16. {
  17. }
  18.  
  19. TPercentBar::~TPercentBar ()
  20. {
  21. }
  22.  
  23. void TPercentBar::SetLimit (long limit)
  24. {
  25.     SendMessage (HWindow, PBM_SETLIMIT, 0, (LPARAM) limit);
  26. }
  27.  
  28. void TPercentBar::SetBytesProcessed (long b)
  29. {
  30.     SendMessage (HWindow, PBM_SETBYTESPROCESSED, 0, (LPARAM) b);
  31. }
  32.  
  33.